﻿/*-----------------------------------------------
// File: EnemyHeroInfoWithHead.cs
// Description: 
// Author: Shaobing	492057342@qq.com
-----------------------------------------------*/
using UnityEngine;
using System.Collections;
using Battle.View;

namespace Battle
{
    public class EnemyHeroInfoWithHead : EnemyHeroInfo 
    {
        public SpecialAngerBar angerBar;

        public override void SetCharactor(BattleCharacter charactor)
        {
            base.SetCharactor(charactor);
            double anger = BattleViewCtrl.GetInstance().GetAngerNum(charactor.camp);
            double maxAnger = BattleViewCtrl.GetInstance().GetAngerMax(charactor.camp);
            angerBar.SetValue(anger / maxAnger);
        }
    }
}